package yf.mall.service;

import yf.mall.entity.AddressEntity;
import com.yf.service.BaseService;

import java.util.List;

/**
 * 地址Service接口
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Mon Aug 26 16:40:35 CST 2019
 */
public interface AddressService extends BaseService<AddressEntity>{

    //找到某人的所有地址
    List<AddressEntity> findByUserId(Long userId);

    //新增或者修改
    AddressEntity merge(AddressEntity addressEntity);
}
